package com.rxmvp.notifycationdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class NotifyRegularActivity extends AppCompatActivity {

    private TextView tvRegular;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notify_regular);
        tvRegular = (TextView) findViewById(R.id.tv_regular);
    }

    @Override
    protected void onResume() {
        super.onResume();
        String extra = getIntent().getStringExtra("notification");
        tvRegular.setText("接收到的数据：" + extra);
    }
}
